<?php

include_once '../../vendor/autoload.php';

use Interactive\Common\Logging;
use Interactive\Common\WebService\Soap;
?>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title> 
    </head>
    <body> 

        <?php

        $soap = new Soap("http://www.webservicex.com/CurrencyConvertor.asmx?wsdl");
        $result = $soap->call("ConversionRate", array("FromCurrency" => "CHF", "ToCurrency" => "USD"));
        Logging::stdout($result->{'ConversionRateResult'});
        ?>
    </body>
</html>
